ALL: DOGOS

include ../../../../make.defs

SRCS   := $(wildcard *.cpp)
OBJS   := $(patsubst %.cpp, %$(obj-suffix), $(SRCS))

DOGOS : .depends $(OBJS)

.cpp.o:
	@echo "Compiling C++ (in "$(mode)" mode) "$<"..."
	@$(CXX) $(CXXFLAGS) $(DOGOS_INCLUDE) -c $< -o $@

.depends : $(SRCS)
	@if [ $(SYSTEM) != CYGWIN ]; then \
          $(CXX) -MM $(SRCS) $(DOGOS_INCLUDE) > .depends ; \
        else \
          echo > .depends ; \
        fi
-include .depends

.PHONY : clean distclean

clean:
	-@rm -f *.o
	-@rm -f *~
	
distclean:
	-@rm -f *.o
	-@rm -f *~
	-@rm -f .d*
